/*
 *    Copyright (c) 2018-2025, bfcloud All rights reserved.
 *
 * Redistribution and use in source and binary forms, with or without
 * modification, are permitted provided that the following conditions are met:
 *
 * Redistributions of source code must retain the above copyright notice,
 * this list of conditions and the following disclaimer.
 * Redistributions in binary form must reproduce the above copyright
 * notice, this list of conditions and the following disclaimer in the
 * documentation and/or other materials provided with the distribution.
 * Neither the name of the pig4cloud.com developer nor the names of its
 * contributors may be used to endorse or promote products derived from
 * this software without specific prior written permission.
 * Author: bfcloud
 */

import request from '@/router/axios'
//填报发起列表
export function fetchList(query) {
  return request({
    url: '/appr-contract/workassigntbfq/pageFQ',
    method: 'get',
    params: query
  })
}
// 发起
export function sent(obj) {
  return request({
    url: '/appr-contract/workassigntbfq/sent',
    method: 'post',
    data: obj
  })
}
// 失去焦点保存
export function saveZbData(obj) {
  return request({
    url: '/appr-contract/workassigntbfq/saveZbData',
    method: 'post',
    data: obj
  })
}
// 自评保存
export function saveBatchForZp(obj) {
  return request({
    url: '/appr-contract/workassigntbfq/saveBatchForZp',
    method: 'post',
    data: obj
  })
}
// 他评保存
export function saveBatchForTp(obj) {
  return request({
    url: '/appr-contract/workassigntbfq/saveBatchForTp',
    method: 'post',
    data: obj
  })
}
// 他评保存
export function saveBatchForPjdf(obj) {
  return request({
    url: '/appr-contract/workassigntbfq/saveBatchForPjdf',
    method: 'post',
    data: obj
  })
}
// 其他奖惩
export function saveBatchForQtjc(obj) {
  return request({
    url: '/appr-contract/workassigntbfq/saveBatchForQtjc',
    method: 'post',
    data: obj
  })
}
//计算得分
export function calcuScore(obj) {
  return request({
    url: '/appr-contract/workassigntbfq/calcuScore',
    method: 'put',
    data: obj
  })
}

export function getnormlist(query) {
  return request({
    url: '/appr-contract/workassignzb/getnormlist',
    method: 'get',
    params: query
  })
}
// 查看领导审核记录
export function getLdshOpinions(query) {
  return request({
    url: '/appr-contract/workassigncj/getLdshOpinions',
    method: 'get',
    params: query
  })
}